/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "../../帧缓存.h"
#include "../Core/Vk结构声明.h"



struct S_Vk帧缓存 : public S_帧缓存 {
	VkDevice		m_设备;

	//VkRenderPass	m_渲染通道;
	//S_Vk帧缓存(const ivec2 size, VkDevice& dev, VkRenderPass& rp, vector<VkImageView> 附件图像视口);
	S_Vk帧缓存(const ivec2 size);

	void	f_构建帧缓存(VkDevice& dev, VkRenderPass& rp);
	void	f_构建交换链缓存(VkDevice& dev, VkRenderPass& rp, uint8 附件数量);
	void	f_构建交换链缓存(S_设备环境& ctx, uint8 附件数量);

	void	f_release();


	//void	f_添加颜色图像();
	//void	f_添加深度图像();
//private:
	vector<VkFramebuffer>	m_帧缓存;

	vector<S_VkImage*>		m_交换面颜色缓存;
	vector<S_VkImage*>		m_交换面深度缓存;


};



